<%
SQL = "SELECT id , dte, diary.text_field, Diary_Categorys.Category, Diary_Categorys.Colour, Diary_Categorys.BgColour" & _
" FROM Diary_Categorys RIGHT JOIN diary ON Diary_Categorys.Cat_ID = diary.Category where dte = " & view_date
objRs.Open SQL, objCon
%>
Diary Manager
<%= day(view_date) & " " & monthname(month(view_date)) & " " & year(view_date) %>
Choose an Event to Edit
| Event |
Date & Time |
<%
if objRs.EOF or objRs.BOF then
Response.Write "| No events found for today |
"
Else
do until objRs.EOF
d = cdate(objRs("dte"))
Response.Write "
"
Response.Write "| " & objRs("text_field") & " | "
Response.Write "" & day(d) & " " & monthname(month(d)) & " " & year(d) & " | " & vbcrlf
Response.Write "
"
objRs.MoveNext
loop
Response.Write ""
End If
%>
<%
on error resume next
objRs.Close
objCon.Close
set objRs= nothing
set objCon = nothing
%>